﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Net.Http;
using System.Threading.Tasks;

namespace TestConsole
{
    class Program
    {
        static async Task Main(string[] args)
        {
            TestHanlder hanlder = new TestHanlder();         
            Console.WriteLine("==============");
            while (true) 
            {
                Console.ReadLine();
                var result3 = await hanlder.Create<ActionSvcClient>().SendRequestAsync(op =>
                {
                    //op.Method = HttpMethod.Post;
                    op.Content = new FormUrlEncodedContent(new List<KeyValuePair<string, string>>
                {
                    new KeyValuePair<string, string>("incNos","D2446249-1292-4E79-A9E7-644611B8FCD6;D5AB34CC-E9D2-4204-AB0E-4DD70FEB6016")
                });
                }).ConfigureAwait(true);
                Console.WriteLine($"result3={result3}");
                Console.WriteLine("Hello World!");
            }
        


        }
    }
}
